package cn.b.training.baby_education_training.service;

import cn.b.training.baby_education_training.entity.FoodMenu;
import cn.b.training.baby_education_training.service.dto.FoodMenuDto;
import cn.b.training.baby_education_training.service.dto.MenuDto;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @program: baby_education_training
 * @description
 * @author: wuying
 * @create: 2022-12-02 14:37
 **/
public interface FoodMenuService {
    boolean addFoodMenu(FoodMenuDto foodMenuDto);
    /**
     * 通过id查询菜谱信息
     * @param id id
     * @return
     */
    MenuDto getFoodMenuById(Long id);

    Boolean deleteFoodMenuById(Long id);

    List<FoodMenu> getFoodMenuByTitle(String foodTitle);

    /**
     * 获取全部食谱列表
     * @param page 页码
     * @param size 页长
     * @return Page<UserAccount> 食谱分页列表
     */
    Page<FoodMenu> getAllMenus(Integer page, Integer size);
}
